#include <stdio.h>
#include <string.h>
#define 	ALPHABET 	'z' - 'a' + 2
/*
 * Write a program to print a histogram of the frequencies 
 * of different characters in its input. 
 */

int iswhite (int);
static char chars[ALPHABET];

main(){
	int car;

	while((car = getchar()) != EOF){
		if(!iswhite(car)){
			car = tolower(car);
			if(car >= 'a' && car <= 'z')
				chars[car - 'a'] ++; 
		}
	}
	
	printf("\n");
	
	int i = 1;
	while(i<(ALPHABET)){
		printf("%c:\t", i + ('a' - 1));
		int j;
		for(j=0; j<chars[i-1]; j++){
			printf("*"); 
		}
		printf("\n");
		i++;
	}
	printf("\n");
}

int iswhite(int car){
	return ((car == '\t') || (car == '\n') || (car == ' '));
}
